package com.major.sort.bubblesorting;

public class BubbleSort {
    public static void main(String[] args) {
        //int[] arr = {2,1,4,3,0,2345,45,765,87,56,78,659,87,8,4,4,75,756,8,678,4578,6,86,78,46578,35,673,4576,4,357357,45,7846,87,56798,57,689,578,9,670,8,690,78,90,458,345,67,53,78,689,7,9464,75,3,6,9,0,7,5,3,5,6,7,8,9,7,5,4,3,5,4,3,2,1,6,87,4,56,23,4,3265,456,3,7,1,345,42573,672,456,2};

        int[] arr = new int[100000];
        for (int i = 0; i < 100000; i++) {
            arr[i] = (int) (Math.random() * 100000);
        }

        long millis = System.currentTimeMillis();
        BubbleSorting.bubble(arr);
        System.out.println(System.currentTimeMillis() - millis);
    }
}


